package org.cying.main.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.util.List;

/**
 * 提交任务实体类
 * @author Cying
 */
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@Data
public class CommitContent extends Student {
    
    private int flag;
    
    private String context;
    
    private List<String> imgs;

    public CommitContent combile(Student student) {
        setSid(student.getSid());
        setName(student.getName());
        setBirth(student.getBirth());
        setCollege(student.getCollege());
        setDept(student.getDept());
        setGroup(student.getGroup());
        setDuty(student.getDuty());
        setQQ(student.getQQ());
        setTel(student.getTel());
        setOther(student.getOther());
        return this;
    }
    
}
